﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Entities;
using Utility;
using BUS;

public partial class Administrator_doanhnghiep_chitiet : System.Web.UI.Page
{
    public int STT=0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            load_data();
        }
    }

    private void load_data()
    {
        int id = int.Parse(Request.QueryString["id"].ToString());
        Tbl_DoanhNghiep_Entities dn = Tbl_DoanhNghiep_BUS.GetByID(id);
        lit_madoanhnghiep.Text = dn.MaDN;
        lit_tendn.Text = dn.TenDN;
        txt_dc.Text = dn.DiaChi;
        lit_dt.Text = dn.SDT;
        hyp_website.Text = dn.WebSite;
        hyp_website.NavigateUrl = "http://" + dn.WebSite;
        txt_gioithieu.Text = dn.GioiThieu;
        lit_taikhoan.Text = dn.TaiKhoan;
        lit_sodutaikhoan.Text = dn.SoDuTaiKhoan.ToString();
    }

}
